<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page contentType="text/html;charset=UTF-8" %>
<%@page import="com.lmpop.trade.ti_custcomment.*" %>
<%@page import="java.util.*" %>
<%@page import="com.lmpop.trade.ti_goods.Ti_goodsInfo" %>
<%@page import="com.lmpop.trade.ti_teambuy.Ti_teambuyInfo"%>
<html>
  <head>
    
    <title>用户评价回复</title>
		<link href="/program/admin/index/css/style.css" rel="stylesheet" type="text/css">
	  <script src='rating/jquery.js' type="text/javascript"></script>
		<script src='rating/documentation.js' type="text/javascript"></script>
	  <!--// plugin-specific resources //-->
		<script src='rating/jquery.MetaData.js' type="text/javascript" language="javascript"></script>
	  <script src='rating/jquery.rating.js' type="text/javascript" language="javascript"></script>
	  <link href='rating/jquery.rating.css' type="text/css" rel="stylesheet"/>	

</head>

<body>

  <% 
  	
  	String info_id="";
  	if(request.getParameter("info_id")!=null) info_id = request.getParameter("info_id");
  	Ti_custcommentInfo ti_custcommentInfo = new Ti_custcommentInfo();
  	List list = ti_custcommentInfo.getListByPk(info_id);
  	Hashtable map = new Hashtable();
  	if(list!=null && list.size()>0) map = (Hashtable)list.get(0);
  	
  	String goods_id="",com_type="",content="",in_date="",user_id="",info_level="",up_num="",down_num="",reply_content="",reply_date="",reply_user_id="";
  	if(map.get("goods_id")!=null) goods_id = map.get("goods_id").toString();
  	if(map.get("com_type")!=null) com_type = map.get("com_type").toString();
  	if(map.get("content")!=null) content = map.get("content").toString();
  	if(map.get("info_level")!=null) info_level = map.get("info_level").toString();
  	if(map.get("reply_content")!=null) reply_content = map.get("reply_content").toString();
  	if(map.get("reply_user_id")!=null) reply_user_id = map.get("reply_user_id").toString();
    List listtemp= new Ti_goodsInfo().getListByPk(goods_id);
    String title="";
 		if(listtemp!=null && listtemp.size()>0) title=((Hashtable)listtemp.get(0)).get("goods_name").toString();
 
 
 String search_title="",search_StartDate="",search_EndDate="",isReplay_s="";
	
	if(request.getParameter("search_title")!=null && !request.getParameter("search_title").equals("")){
		 search_title = request.getParameter("search_title");
	}
	
	if(request.getParameter("isReplay")!=null && !request.getParameter("isReplay").equals("")){
		 isReplay_s = request.getParameter("isReplay");
	}	
	
	if(request.getParameter("search_StartDate")!=null && !request.getParameter("search_StartDate").equals("")){
		 search_StartDate = request.getParameter("search_StartDate");
	}
	
	if(request.getParameter("search_EndDate")!=null && !request.getParameter("search_EndDate").equals("")){
		 search_EndDate = request.getParameter("search_EndDate");
	}
  String para ="/program/admin/goodscomment/index.jsp?search_title="+search_title+"&isReplay="+isReplay_s+"&search_title="+search_StartDate+"&search_EndDate="+search_EndDate;
   
   
   %>
	
	<h1>用户评价回复</h1>
	<script src="js_comment.js"></script>	
	<form action="/doTradeReg.do" method="post" name="addForm">
	<table width="100%" cellpadding="0" cellspacing="1" border="0" class="listtab">
		
		<tr>
			<td align="right" width="20%">
				标题:
			</td>
			<td><%=title %></td>
		</tr>
		<tr>
			<td align="right" width="20%">
				评价星级:
			</td>
			<td>
			 <div class="Clear">
				  <input name="info_level" type="radio" value='1' <%if(info_level.equals("1")){%>checked<%}%> disabled="disabled" class="star"/>
				  <input name="info_level" type="radio" value='2' <%if(info_level.equals("2")){%>checked<%}%> disabled="disabled" class="star"/>
				  <input name="info_level" type="radio" value='3' <%if(info_level.equals("3")){%>checked<%}%> disabled="disabled" class="star"/>
				  <input name="info_level" type="radio" value='4' <%if(info_level.equals("4")){%>checked<%}%> disabled="disabled" class="star"/>
				  <input name="info_level" type="radio" value='5' <%if(info_level.equals("5")){%>checked<%}%> disabled="disabled"  class="star"/>
			  </div>

			</td>
		</tr>

		<tr>
			<td align="right" width="20%">
				评价内容:
			</td>
			<td>
				<%=content %>			
			</td>
		</tr>
			
		<tr>
			<td align="right" width="20%">
				回复评论<font color="red">*</font>				
			</td>
			<td>
				
				<textarea name="reply_content" id="reply_content" style="WIDTH: 425px;HEIGHT:100px"><%=reply_content%></textarea>
			
			</td>
		</tr>
				
	</table>
	
	<table width="100%" cellpadding="0" cellspacing="0" border="0">
		<tr>
			<td align="center">
				<input type="hidden" name="bpm_id" value="0389" />
	  			<input type="hidden" name="info_id" value="<%=info_id %>" />
				<input type="hidden" name="jumpurl" value="<%=para%>" />
				<input type="button" class="buttoncss" name="tradeSub" value="提交" onclick="subForm();"/>&nbsp;&nbsp;
				<input type="button" class="buttoncss" name="tradeRut" value="返回" onclick="window.location.href='<%=para%>';"/>
			</td>
		</tr>
	</table>
	</form>
</body>

</html>
